package com.yunkazaixian.syntelecom.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yunkazaixian.syntelecom.entity.SysTenantConfig;
import com.yunkazaixian.syntelecom.mapper.SysTenantConfigMapper;
import com.yunkazaixian.syntelecom.service.ISysTenantConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 租户配置Service业务层处理
 *
 * @author Lin
 * @date 2025-03-05
 */
@Service
public class SysTenantConfigServiceImpl implements ISysTenantConfigService {
    @Autowired
    private SysTenantConfigMapper baseMapper;
    /**
     * 查询租户配置
     */
    @Override
    public SysTenantConfig queryByTenantId(String tenantId) {
        SysTenantConfig sysTenantConfig = baseMapper.selectOne(new LambdaQueryWrapper<SysTenantConfig>().eq(SysTenantConfig::getTenantId, tenantId));
        return sysTenantConfig;
    }
}
